

package com.pig4cloud.pigx.ruralLibrary.api.feign;


import com.pig4cloud.pigx.common.core.constant.SecurityConstants;
import com.pig4cloud.pigx.common.core.constant.ServiceNameConstants;
import com.pig4cloud.pigx.common.core.util.R;
import com.pig4cloud.pigx.ruralLibrary.api.entity.BookUserEntity;
import com.pig4cloud.pigx.ruralLibrary.api.entity.terrainEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author lengleng
 * @date 2018/6/22
 */
@FeignClient(contextId = "remoteBookUserService", value = ServiceNameConstants.BOOKUPMS_SERVICE)
public interface RemoteBookUserService {

	@PostMapping("/user/saveBookUser")
	R saveBookUser(@RequestBody BookUserEntity bookUserEntity, @RequestHeader(SecurityConstants.FROM) String from);

	@GetMapping("/summary/getOne/{id}")
	terrainEntity getOne(@PathVariable("id") String id, @RequestHeader(SecurityConstants.FROM) String from);
}
